echo "$#"

if [ $# != 1 ]
	then
	echo 'Usage: convertToAvi.sh /"ChrName/"'
	exit 0
fi
for f in $1*.ppm; do convert -quality 100 $f  `basename $f .ppm`.jpg; done
mencoder "mf://$1*.jpg" -mf fps=2 -o movie.avi -ovc lavc -lavcopts vcodec=mjpeg

